#!/usr/bin/env python
import wx
ID_ABOUT = 101 
ID_EXIT  = 110 

class MainWindow(wx.Frame):
    def __init__(self, parent, id, title):
        wx.Frame.__init__(self, parent, wx.ID_ANY, title, size=(400, 200),\
                          style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE\
                          )
        self.control =  wx.TextCtrl(self,1,style=wx.TE_MULTILINE)
        #--- Start New Code------------------------------------------------
        self.CreateStatusBar()
        #--- Setting up the menu.
        filemenu = wx.Menu()
        filemenu.Append(ID_ABOUT, "&About", "Info about this program")
        filemenu.AppendSeparator()
        filemenu.Append(ID_EXIT, "E&xit", "Terminate the program")
        #--- Create the menu.
        menubar = wx.MenuBar()
        menubar.Append(filemenu, "&File")
        self.SetMenuBar(menubar)
        #---- End NEW CODE -------------------------------------------------
        self.Show(True)

app = wx.PySimpleApp()
frame = MainWindow(None, -1, "Small Editor")
#frame = wx.Frame(None, -1, "Hello Worlds" ) 
#frame.Show(1)
app.MainLoop()
